home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3873 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.tu-chemnitz.de!news
  2. From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: compiling- gcc v.s. cc
  5. Date: 31 Jan 96 17:26:39 GMT
  6. Organization: University of Technology Chemnitz, FRG
  7. Message-ID: <4eo8vo$dvg@pyrrhus-f.hrz.tu-chemnitz.de>
  8. References: <4emvi6$j4@cnn.Princeton.EDU>
  9. NNTP-Posting-Host: tantalus-f.hrz.tu-chemnitz.de
  10.  
  11. miker@tucson.princeton.edu (CIT Information Centers) writes:
  12.  
  13. >1) Is the GNU C compiler (gcc) a standard compiler that most unix
  14. >   users have at their disposal?
  15.  
  16. I would say "yes". gcc is available for most unix and also
  17. for DOS and WIN platforms.
  18.  
  19. >   I experimented with cc but did did not get consistent results.
  20. >   On an SGI it compiled fine (both with gcc and cc), but not on 
  21. >   Sun-4 it only compiled with gcc and not with cc (cc produced
  22. >   a lot of error messages which seem to be connected to the
  23. >   way I declared my functions. I use prototype form as opposed
  24. >   to traditional form).
  25.  
  26. Thats the problem with sun's cc. :-(
  27.  
  28. >this brings me to question...
  29.  
  30. >2) Why would a program compile fine with cc on one machine but not on 
  31. >   another?
  32.  
  33. Sun does only chip a K&R compiler others ship ANSI C Compiler or
  34. at least compiler which know prototypes.
  35.  
  36. >3) What's the difference between cc and gcc? 
  37. Different products for the same aim.
  38.  
  39. h.f.s.
  40. [reply too]
  41. --
  42. Hans Friedrich Steffani
  43. Institut fuer Elektrische Maschinen und Antriebe
  44. TU Chemnitz-Zwickau
  45. e-mail: hans.steffani@e-technik.tu-chemnitz.de
  46.